from django.conf.urls import url

from . import views

urlpatterns=[
    # 列表详情页展示
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$',views.ListView.as_view(),name='list'),
    # 热销商品展示
    url(r'^hot/(?P<category_id>\d+)/$', views.HotGoodsView.as_view()),
    # 商品详情页展示
    url(r'^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view(),name='detail'),
    # 统计商品的访问量
    # url(r'^detail/visit/(?P<category_id>\d+)/$', views.DetailView.as_view())
    url(r'^detail/visit/(?P<category_id>\d+)/$', views.DetailVisitView.as_view()),

]